﻿<%@ Page Title="用户完整信息" Language="C#" MasterPageFile="~/Register.Master" AutoEventWireup="true" CodeBehind="UserEdit.aspx.cs" Inherits="HealthCommunity.UserEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
	<asp:ScriptManager ID="ScriptManager1" runat="server">
	</asp:ScriptManager>
	<div id="registercontent">
		<div class="registertitle">
			填写信息
		</div>
		<table class="registerbox" cellpadding="5">
			<tr>
				<td colspan="2">
					<p class="tips">
						完成后,将获得200个积分
					</p>
				</td>
			</tr>
			<tr>
				<td>
					<label>QQ号:</label>
				</td>
				<td>
					<asp:TextBox ID="txtQQID" runat="server" MaxLength="24" Width="177px" ReadOnly="true"></asp:TextBox>
					<asp:RequiredFieldValidator ID="rfvQQID" runat="server" ValidationGroup="pwd" ControlToValidate="txtQQID" ErrorMessage="QQ号不能空"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
				<td>
					<label>密 码:</label>
				</td>
				<td>
					<asp:TextBox ID="txtPWD" runat="server" MaxLength="48" Width="177px" TextMode="Password"></asp:TextBox>
					<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ValidationGroup="pwd" ControlToValidate="txtPWD" ErrorMessage="密码不能空"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
				<td>
					<label>确认密码:</label>
				</td>
				<td>
					<asp:TextBox ID="txtPWDConfirm" runat="server" MaxLength="48" Width="177px" TextMode="Password"></asp:TextBox>
					<asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="确认密码与密码不一致" ControlToValidate="txtPWDConfirm" ControlToCompare="txtPWD" ValidationGroup="pwd"></asp:CompareValidator>
				</td>
			</tr>
			<tr>
				<td>
					<label>邮箱地址:</label>
				</td>
				<td>
					<asp:TextBox ID="txtEMail" runat="server" MaxLength="56" Width="177px"></asp:TextBox>
					<asp:RequiredFieldValidator ID="rfvEMail" runat="server" ValidationGroup="pwd" ControlToValidate="txtEMail" ErrorMessage="邮箱地址不能空"></asp:RequiredFieldValidator>
					<asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEMail" ForeColor="Red" ErrorMessage="邮箱地址格式错误" Display="Static" SetFocusOnError="true"
						ValidationGroup="pwd" ValidationExpression="^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$"></asp:RegularExpressionValidator>
				</td>
			</tr>
			<tr>
				<td>
					<label>中文名: </label>
				</td>
				<td>
					<asp:TextBox ID="txtChName" runat="server" MaxLength="48" Width="177px"></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td>
					<label>性别:</label>
				</td>
				<td>
					<asp:RadioButton ID="rblSexMale" runat="server" GroupName="sex" Text="男" />
					<asp:RadioButton ID="rblSexFemale" runat="server" GroupName="sex" Text="女" />
					<asp:RadioButton ID="rblSexKeepSecret" runat="server" GroupName="sex" Text="保密" />
				</td>
			</tr>
			<tr>
				<td>
					<label>身份证:</label>
				</td>
				<td>
					<asp:TextBox ID="txtSFZ" runat="server" MaxLength="16" Width="177px"></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td>
					<label>药店:</label>
				</td>
				<td>
					<%--<asp:DropDownList ID="ddlDrugStore" runat="server" DataTextField="DrugStoreName" DataValueField="DrugStoreID">
					</asp:DropDownList>--%>
					<asp:Literal ID="ltrDrugStore" runat="server"></asp:Literal>
				</td>
			</tr>
			<tr>
				<td>
					<label>职位:</label>
				</td>
				<td>
					<asp:TextBox ID="txtPosition" runat="server" MaxLength="48" Width="177px"></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td>
					<label>地址:</label>
				</td>
				<td>
					<asp:UpdatePanel ID="UpdatePanel1" runat="server">
						<ContentTemplate>
							<asp:DropDownList ID="ddlProvince" runat="server" AutoPostBack="true" DataTextField="Name" DataValueField="StateProvinceID" OnSelectedIndexChanged="ddlProvince_SelectedIndexChanged">
							</asp:DropDownList>
							<asp:DropDownList ID="ddlCity" runat="server" AutoPostBack="true" DataTextField="CityName" DataValueField="CityID">
							</asp:DropDownList>
						</ContentTemplate>
					</asp:UpdatePanel>
					<asp:TextBox ID="txtAddress" runat="server" MaxLength="256" Width="177px"></asp:TextBox>
				</td>
			</tr>
			<tr>
				<td>
					<label>密码提示问题1:</label>
				</td>
				<td>
					<asp:TextBox ID="txtSecretQuestion1" runat="server" MaxLength="256" Width="177px"></asp:TextBox>
					<asp:RequiredFieldValidator ID="rfvSQ1" runat="server" ValidationGroup="pwd" ControlToValidate="txtSecretQuestion1" ErrorMessage="密码提示问题不能空,将用于密码找回"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
				<td>
					<label>密码提示答案1:</label>
				</td>
				<td>
					<asp:TextBox ID="txtSecretAnswer1" runat="server" MaxLength="256" Width="177px"></asp:TextBox>
					<asp:RequiredFieldValidator ID="rfvSA1" runat="server" ValidationGroup="pwd" ControlToValidate="txtSecretAnswer1" ErrorMessage="密码提示答案不能空,将用于密码找回"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
				<td>
					<label>密码提示问题2:</label>
				</td>
				<td>
					<asp:TextBox ID="txtSecretQuestion2" runat="server" MaxLength="256" Width="177px"></asp:TextBox>
					<asp:RequiredFieldValidator ID="rfvSQ2" runat="server" ValidationGroup="pwd" ControlToValidate="txtSecretQuestion2" ErrorMessage="密码提示问题不能空,将用于密码找回"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
				<td>
					<label>密码提示答案2:</label>
				</td>
				<td>
					<asp:TextBox ID="txtSecretAnswer2" runat="server" MaxLength="256" Width="177px"></asp:TextBox>
					<asp:RequiredFieldValidator ID="rfvSA2" runat="server" ValidationGroup="pwd" ControlToValidate="txtSecretAnswer2" ErrorMessage="密码提示答案不能空,将用于密码找回"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
				<td>
				</td>
				<td>
					<asp:Button ID="btnSubmit" runat="server" Text="同意以下服务条款,提交注册信息" OnClick="btnSubmit_Click" CssClass="whitebutton" ValidationGroup="pwd" />
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<asp:Literal ID="ltrMsg" runat="server"></asp:Literal>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<label>会员协议</label>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<asp:TextBox ID="txtProtocal" runat="server" TextMode="MultiLine" Width="99%" Height="230" ReadOnly="true"></asp:TextBox>
				</td>
			</tr>
		</table>
	</div>
	<div class="clear" style="min-height: 1080px;">
	</div>
</asp:Content>
